@extends('master') @section('content')
<div class="management-content">
    <div class="container">
        <div class="record-list management-order-info">
            <h2>订单详情</h2>

            <table class="table">
                <thead>
                    <tr>
                        <th>图片</th>
                        <th>图片信息</th>
                        <th>描述</th>
                        <th>价格</th>
                        <th>操作</th>
                    </tr>
                </thead>
                <tbody>
                   @foreach ($products as $product)
                    <tr>
                        <td>
                            <img src="{{ '/uploads/picture/' . $product->thumb }}" alt="">
                        </td>
                        <td>
                            <span>图片ID : {{ $product->sku }}</span>
                            <span>上传时间: {{ $product->created_at }}</span>
                            <span>状态: {{ $product->status }}</span>
                        </td>
                        <td>
                            <p>描述信息</p>
                            <h4>关键字</h4>
                            <p>

                            </p>
                        </td>
                        <td>
                            ¥ {{ $product->price }}
                        </td>
                        <td>
                            <a href="/order/delete-product/{{ $order->id }}/{{ $product->picture_id }}" class="btn btn-sm btn-danger"><i class="glyphicon glyphicon-trash"></i> 删除</a>
                        </td>
                    </tr>
                    @endforeach
                </tbody>
            </table>




            <h4>支付方式</h4>
            <label for="">
                <input type="checkbox" name="payment-type" />线下支付
            </label>
            <label for="">
                <input type="checkbox" name="payment-type" />在线支付（支付宝）
            </label>

            <div class="row order-info">

                <div class="pull-right  col-sm-6">
                   <button type="submit" class="btn btn-default pull-right" onclick="window.location='/order/delete/{{ $order->id }}'">取消订单</button>
                    <button type="submit" class="btn btn-primary pull-right">支付</button>
                    <div class="pull-right">
                        订单小计： <span>¥ 0</span>
                    </div>


                </div>
            </div>
        </div>

    </div>
</div>
@stop




